﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace projekty2
{
    public partial class frmSpeedDial : Form
    {
        private frmHlavny hlavneOkno;
        public frmSpeedDial(frmHlavny paHlavneOkno)
        {
            InitializeComponent();
            hlavneOkno = paHlavneOkno;
        }

        private void pnlVyplaty_MouseEnter(object sender, EventArgs e)
        {
            pnlVyplaty.BackgroundImage = projekty2.resources.rbig_Cash;
        }

        private void pnlVyplaty_MouseLeave(object sender, EventArgs e)
        {
            pnlVyplaty.BackgroundImage = projekty2.resources.big_Cash;
        }

        private void pnlProjekty_MouseEnter(object sender, EventArgs e)
        {
            pnlProjekty.BackgroundImage = projekty2.resources.rbig_Copy;
        }

        private void pnlProjekty_MouseLeave(object sender, EventArgs e)
        {
            pnlProjekty.BackgroundImage = projekty2.resources.big_Copy;
        }

        private void pnlHelp_MouseEnter(object sender, EventArgs e)
        {
            pnlHelp.BackgroundImage = projekty2.resources.rbig_Info;
        }

        private void pnlHelp_MouseLeave(object sender, EventArgs e)
        {
            pnlHelp.BackgroundImage = projekty2.resources.big_Info;
        }

        private void pnlLogout_MouseEnter(object sender, EventArgs e)
        {
            pnlLogout.BackgroundImage = projekty2.resources.rbig_Key;
        }

        private void pnlLogout_MouseLeave(object sender, EventArgs e)
        {
            pnlLogout.BackgroundImage = projekty2.resources.big_Key;
        }

        private void pnlExit_MouseEnter(object sender, EventArgs e)
        {
            pnlExit.BackgroundImage = projekty2.resources.rbig_Standby;
        }

        private void pnlExit_MouseLeave(object sender, EventArgs e)
        {
            pnlExit.BackgroundImage = projekty2.resources.big_Standby;
        }

        private void pnlBack_MouseEnter(object sender, EventArgs e)
        {
            pnlBack.BackgroundImage = projekty2.resources.rbig_Undo;
        }

        private void pnlBack_MouseLeave(object sender, EventArgs e)
        {
            pnlBack.BackgroundImage = projekty2.resources.big_Undo;
        }

        private void pnlUsers_MouseEnter(object sender, EventArgs e)
        {
            pnlUsers.BackgroundImage = projekty2.resources.rbig_Users;
        }

        private void pnlUsers_MouseLeave(object sender, EventArgs e)
        {
            pnlUsers.BackgroundImage = projekty2.resources.big_Users;
        }

        private void frmSpeedDial_Shown(object sender, EventArgs e)
        {
            pnlVyplaty.BackgroundImage = projekty2.resources.big_Cash;
            pnlProjekty.BackgroundImage = projekty2.resources.big_Copy;
            pnlHelp.BackgroundImage = projekty2.resources.big_Info;
            pnlLogout.BackgroundImage = projekty2.resources.big_Key;
            pnlExit.BackgroundImage = projekty2.resources.big_Standby;
            pnlBack.BackgroundImage = projekty2.resources.big_Undo;
            pnlUsers.BackgroundImage = projekty2.resources.big_Users;
        }

        private void pnlBack_Click(object sender, EventArgs e)
        {
            this.Hide();
        }

        private void pnlVyplaty_Click(object sender, EventArgs e)
        {
            this.Hide();
            hlavneOkno.panelVyplaty(RiadenieProjektov.KAkcia.Zobrazit);
        }

        private void pnlProjekty_Click(object sender, EventArgs e)
        {
            this.Hide();
            hlavneOkno.panelProjekty(RiadenieProjektov.KAkcia.Zobrazit);
        }

        private void pnlHelp_Click(object sender, EventArgs e)
        {
            this.Hide();
            MessageBox.Show("About :)");
        }

        private void pnlLogout_Click(object sender, EventArgs e)
        {
            this.Hide();
            hlavneOkno.akciaOdhlasit(null, null);
        }

        private void pnlExit_Click(object sender, EventArgs e)
        {
            this.Hide();
            hlavneOkno.Close();
        }

        private void pnlUsers_Click(object sender, EventArgs e)
        {
            this.Hide();
            hlavneOkno.panelUzivatelia(RiadenieProjektov.KAkcia.Zobrazit);
        }

        private void frmSpeedDial_Load(object sender, EventArgs e)
        {
            menuStrip1.Visible = false;
        }
    }
}
